<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div id="formPageSwap">
  <br/>
<form id="addNewsFormData" name="addNewsFormData" isCheck="true" action="com.jy.modules.cims.creditDeal.controller.TCMmCooperorgDealController">
 <table id="addNewsTableId" class="formTableSwap" style="background:#D9D8DF;" border="0" align="center" cellpadding="0" cellspacing="1" >
<tr>
<td colspan="6" align="center" class="thTop">合约信息 <span id="spanCode" ><a class="aColor" style="float: right" href="javascript:void(0)" onclick="toAddContract()" >导入合约</a></span></td>
</tr>
<tr>
  <th> 合作机构 ：</th>
  <td >
  <input type="text" style="display:none;" id="exportType" value="credit">
  <input type="text" style="display:none;" id="isDelete" value="false">
  <input type="text" style="display:none;" id="addOrUpdate" value="add">
  <input type="text" style="display:none;" id="isDeleteAndIsExport" value="false">
  <input type="text" style="display:none;" id="cooperorgCode" value="${cooperorgCode }">
  <input type="text" style="display:none;" name="id" id="idValue" value="${id}">
  <input type="text" style="display:none;" name="settleDealCodes" id="settleDealCodes" value="${settleDealCodes}">
  <input type="text" style="display:none;" name="planSellSum" id="planSellSum" value="${planSellSum}">
  <input type="text" style="display:none;" name="practicalSellSum" id="practicalSellSum" value="${practicalSellSum}">
  <input type="text" style="display:none;" name="dealCode" id="dealCode" value="${dealCode}">
  <input type="text" style="display:none;" name="fileName" id="fileName" value="债权信息">
  <input type="text" style="display:none;" name="dealType" id="dealType" value="09">
  <input type="text" style="display:none;" name="dealTypes" id="dealTypes" value="'01','02'">
  <input disabled="disabled" style="display:none;" type="text" class="text" id="dtocooperorgCode" name="cooperorgCode"   value="${dto.cooperorgDTO.cooperorgCode}" />
  <input disabled="disabled" type="text" class="text" id="dtocooperorgName" name="cooperorgName"   value="${dto.cooperorgDTO.cooperorgName}" />
  </td>
  <th> 协议名称 ：</th>
  <td > 
  <input disabled="disabled" style="display:none;" type="text" class="text" id="dtoagreementCode" name="agreementCode"   value="${dto.agreementDTO.agreementCode}" />
  <input disabled="disabled" type="text" class="text" id="dtoagreementName" name="agreementName"   value="${dto.agreementDTO.agreementName}" />
  </td>
  <th> 合约名称 ：</th>
  <td >
  <input disabled="disabled" style="display:none;" type="text" class="text" id="productType" name="productType"   value="${dto.cdto.productType}" /> 
  <input disabled="disabled" style="display:none;" type="text" class="text" id="dtocontractCode" name="contractCode"   value="${dto.cdto.contractCode}" />
  <input disabled="disabled" type="text" class="text" id="dtocontractName" name="contractName"   value="${dto.cdto.contractName}" />
  </td> 
</tr>

<tr>
<th style="display:none;"> 交易类型 ：</th>
  <td style="display:none;">
	<syscode:dictionary name="dealType" extendProperty="notNull=false" codeType="CREDIT_DEAL_TYPE" id="dealType"	
      defaultValue="${dto.cdto.dealType}" className="text" type="select"/>
  </td>
  
  <!-- <th> 申请额度：</th>
   <td>
  	  <input type="text" class="text" id="dtoquotaSum" name="quotaSum"  maxLength="10" value="" >
  </td> -->
  <th> 价格认定方：</th>
  <td colspan="6"> 
<syscode:dictionary name="creditorAffirmRule" extendProperty="notNull=false" codeType="creditConfirm" id="creditorAffirmRule"	
      defaultValue="${dto.cdto.creditorAffirmRule}" className="text" type="select"/>
     </td>  
</tr>

<tr id="creditOperation">
 	<td colspan="6" align="center" class="thTop">债权信息</td>	
</tr>

<tr id="creditPackageColumn">
   <th> 债权包：</th>
   <td>
   		<select id="creditPackage" onchange="creditPackageOperation(this)"></select>
  	    <%--<input disabled="disabled" type="text" class="text" id="creditPackage" name="creditPackage"  value="${creditPackageName}" />
  	  	--%>
  </td>
  <%-- <td>
  	<input id="creditPackageWrite"  type="text" onchange="creditPackageOperationWrite(this);" value="${creditPackageName}">
  </td> --%>
    <th> 账单日(始)：</th>
   <td>
   	<input type="text" class="text" onkeyup="chkInt(this)" id="statementDateStart" name="statementDateStart" >
  </td>
  <th> 账单日(止)：</th>
   <td>
   	<input type="text" class="text" onkeyup="chkInt(this)" id="statementDateEnd" name="statementDateEnd" >
  </td>
  
</tr>
<tr>
<th> 还款方式：</th>
  <td > 
<syscode:dictionary name="publicRepayType" codeType="CM_REPAYMENTWAY" id="publicRepayType"	
       className="text" type="select"/>
     </td>  
     <th> 月还归属：</th>
  <td> 
<syscode:dictionary name="repaymentAffiliation" codeType="REPAYAFFILIATION" id="repaymentAffiliation"	
       className="text" type="select"/>
     </td>  
     
  <th> 标的日期：</th>
  <td> 
	<input type="text" class="text" id="bdDate" name="bdDate" readonly="readonly"/>
  </td>
</tr>
</table>

<!-- 列表按钮操作 start -->
	<div id="creditDetailOperation" class="tableToolbar">
		  	<a href="javascript:void(0)" onclick="toAddDataCredit()" >新 增</a>
		  	<a href="javascript:void(0)" onclick="deleteCredit()" >删 除</a>
		  	<a href="javascript:void(0)" onclick="sureExport()" >导出</a>
<!-- 		  	<a href="javascript:void(0)" onclick="importCreditDetail()" >导入</a> -->
	</div>
	<div id="creditDetailTable">
		<%@include file="../../creditManage/buy/viewCreditDealDetail.jsp" %>
	</div>

</form>
<div class="expandToolbar">
		<span class="submitBtn mouseName" id="saveDeal" onclick="saveCreditDealBuy()">保存</span>
<!--  		<span class="submitBtn mouseName" onclick="">完成</span>
 -->		<span class="submitBtn mouseName" onclick="closeFather()">关闭</span>
 			<span class="submitBtn mouseName" onclick="confirmBuyCreditDetail()">确认</span>
</div>
</div>
